import React from 'react';
import { View, ScrollView } from 'react-native';
import { WingBlank } from '@ant-design/react-native';
import PropTypes from 'prop-types';
import List from './components/List';

const ReadyView = ({ readyList, getPlanList }) => (
    <View>
        <WingBlank>
            <ScrollView
                style={{ marginBottom: 10 }}
            >
                <List readyList={readyList} getPlanList={getPlanList} />
            </ScrollView>
        </WingBlank>
    </View>
);
ReadyView.defaultProps = {
    readyList: [],
    getPlanList: () => {},
};
ReadyView.propTypes = {
    readyList: PropTypes.arrayOf(PropTypes.any),
    getPlanList: PropTypes.func,
};
export default ReadyView;
